<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script>
	window.onload=function(){
		var oUl=document.getElementById("ul1");
		var aA=oUl.getElementsByTagName("a");
		for(var i=0;i<aA.length;i++){
			aA[i].onclick=function(){
				oUl.removeChild(this.parentNode)	
			};	
		};	
	};
</script>
</head>

<body>
<ul id="ul1">
	<li>22222222222<a href="javascript:;">删除</a></li>
	<li>4343444<a href="javascript:;">删除</a></li>
	<li>fgeeeefd<a href="javascript:;">删除</a></li>
	<li>6654444444<a href="javascript:;">删除</a></li>
	<li>6547543gfd<a href="javascript:;">删除</a></li>
	<li>iiiiiiiii<a href="javascript:;">删除</a></li>
</ul>
</body>
</html>
